import http from '../../core/request'
import { FinanceOrder } from './financeOrder.type'
// 用户订单
export const financeOrderList = (data: FinanceOrder.Req.FinanceOrderList) => {
  return http.get<FinanceOrder.Res.FinanceOrderList>('/customer-order/finance-page', data,{
    loading: true
  })
}

// 财务审核
export const financeReview = (id: string, data: FinanceOrder.Req.FinanceReview) => {
  return http.put<FinanceOrder.Res.FinanceOrderDetail>(`/customer-order/${id}/finance-review`, data, {
    loading: true
  })
}
export default {
  financeOrderList,
  financeReview
}